package com.hlbspringcloud.service;

import com.hlbspringcloud.resp.Response;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author huanglibin
 * @Project idempotent
 * @Description
 * @Date 2020-11-24-14-12-56
 * @Version 1.0
 */
@Service
public interface TokenService {
    /**
     * 创建token
     * @return
     */
    public Response createToken();

    /**
     * 验证token
     * @param request
     * @return
     */
    public Response checkToken(HttpServletRequest request);
}
